/**
 * ━━━━━━神兽出没━━━━━━
 * 　　　┏┓　　　┏┓
 * 　　┏┛┻━━━┛┻┓
 * 　　┃　　　　　　　┃
 * 　　┃　　　━　　　┃
 * 　　┃　┳┛　┗┳　┃
 * 　　┃　　　　　　　┃
 * 　　┃　　　┻　　　┃
 * 　　┃　　　　　　　┃
 * 　　┗━┓　　　┏━┛
 * 　　　　┃　　　┃神兽保佑, 永无BUG!
 * 　　　　┃　　　┃Code is far away from bug with the animal protecting
 * 　　　　┃　　　┗━━━┓
 * 　　　　┃　　　　　　　┣┓
 * 　　　　┃　　　　　　　┏┛
 * 　　　　┗┓┓┏━┳┓┏┛
 * 　　　　　┃┫┫　┃┫┫
 * 　　　　　┗┻┛　┗┻┛
 * ━━━━━━感觉萌萌哒━━━━━━
 */
package com.zkgengkun.domain;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 人物模板
 * @author gengshikun
 * @date 2017/11/5
 */
@Entity(name = "`character`")
public class Character {

    @Id
    @GenericGenerator(name = "idGenerator", strategy = "uuid") //这个是hibernate的注解/生成32位UUID
    @GeneratedValue(generator = "idGenerator")
    @Column(length = 32)
    private String characterId;

    @Column(nullable = false)
    private String type;

    @Column(nullable = false)
    private String name;

    /**
     * 资质
     */
    @Column
    private Long aptitude;

    /**
     * 生命值
     */
    @Column
    private Long life;

    /**
     * 先手
     */
    @Column
    private Long spd;
    /**
     * 体质
     */
    @Column
    private Long con;
    /**
     * 力量
     */
    @Column
    private Long str;
    /**
     * 敏捷
     */
    @Column
    private Long agi;

    /**
     * 攻击力
     */
    @Column
    private Long atn;
    /**
     * 防御
     */
    @Column
    private Long def;

    /**
     * 命中
     */
    @Column
    private Long hit;
    /**
     * 回避率
     */
    @Column
    private Long eva;


    @Column(updatable = false)
    private Long createTime;

    @Column(nullable = false)
    private Boolean deleteBoolean;

    public String getCharacterId() {
        return characterId;
    }

    public void setCharacterId(String characterId) {
        this.characterId = characterId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAptitude() {
        return aptitude;
    }

    public void setAptitude(Long aptitude) {
        this.aptitude = aptitude;
    }

    public Long getLife() {
        return life;
    }

    public void setLife(Long life) {
        this.life = life;
    }

    public Long getSpd() {
        return spd;
    }

    public void setSpd(Long spd) {
        this.spd = spd;
    }

    public Long getCon() {
        return con;
    }

    public void setCon(Long con) {
        this.con = con;
    }

    public Long getStr() {
        return str;
    }

    public void setStr(Long str) {
        this.str = str;
    }

    public Long getAgi() {
        return agi;
    }

    public void setAgi(Long agi) {
        this.agi = agi;
    }

    public Long getAtn() {
        return atn;
    }

    public void setAtn(Long atn) {
        this.atn = atn;
    }

    public Long getDef() {
        return def;
    }

    public void setDef(Long def) {
        this.def = def;
    }

    public Long getHit() {
        return hit;
    }

    public void setHit(Long hit) {
        this.hit = hit;
    }

    public Long getEva() {
        return eva;
    }

    public void setEva(Long eva) {
        this.eva = eva;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Boolean getDeleteBoolean() {
        return deleteBoolean;
    }

    public void setDeleteBoolean(Boolean deleteBoolean) {
        this.deleteBoolean = deleteBoolean;
    }
}
